package cn.edu.nit.sys.dto;

import cn.edu.nit.sys.entity.Role;
import cn.edu.nit.sys.entity.Student;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Map;

@Data
public class UserDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    private String id;
    public String username;
    public String phone;
    private String email;
    private Integer enable;
    private String createTime;
    private String roleId;
    private String role;
    private String name;
    private String signature;
    private Integer friends;
    private Map<String, ?> info;
    private String avatar;
}
